package com.example.demo.mapper;

import com.example.demo.model.Blog;
import com.example.demo.model.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface UserMapper {
    List<Blog> getAll();

    Integer insert(User user);

    void insert2(User user);

    Integer update(Integer userId, String password);

    Integer delete(Integer userId);

    List<User> getall2(String sort);

    List<User> getAll3(String username, String password);

    List<User> findLike(String username);

    List<Blog> getUserById(Integer userId);

    Integer insert4(Blog blog);

    Integer insert5(Blog blog);

    List<Blog> selectAll(Integer userId, Integer blogId);

    Integer testUpdate(User user);

    Integer testDe(List<Integer> list);
}
